import os
from data_processor import DataProcessor
from file_handler import FileHandler
from data_comparator import DataComparator
from datetime import datetime

# 定义第三个地址及文件名
OneBszn_url_prefix = "https://12366.chinatax.gov.cn/bsznBLH/getOneBszn?bh="
OneBszn_filename = "OneBszn_data.json"
data_folder3 = "data"
update_log_file3 = "update_log_OneBszn_data.txt"

# 处理第三个地址的数据
OneBszn_data_list = []
OneBszn_url = f"{OneBszn_url_prefix}{'a0607f97f06c4da2a1730231ceb2b2fd'}"
processor3 = DataProcessor(OneBszn_url, request_method='GET')
response3 = processor3.fetch_data(params={"bh": 'a0607f97f06c4da2a1730231ceb2b2fd'})
parsed_data3 = processor3.parse_data(response3, data_path=None, is_html=True)

print(parsed_data3.find('div', class_='articlecon', id='zsxq_nr'))
# 保存和比较第三个地址的数据，类